+vtk9 (9.5.2+dfsg3-4) UNRELEASED; urgency=medium
+
+ * debian/rules: use UPSTREAM_VERSION_ABI (currently 9.5) to refer to
+ version specific library (i.e. libvtk9.5) to fix handling of Qt modules
+
+ -- Drew Parsons <dparsons@debian.org> Wed, 28 Jan 2026 12:46:48 +0100
+
vtk9 (9.5.2+dfsg3-3) unstable; urgency=medium
* Team upload.
include /usr/share/dpkg/architecture.mk
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '/^Version:/ { sub("-[^-]*$$", "", $$2); print $$2}')
+UPSTREAM_VERSION_ABI = $(shell echo $(UPSTREAM_VERSION) | sed -e 's/[\.\+]dfsg.*$$//' | awk 'BEGIN { FS="."}; {print $$1"."$$2 }')
+
+
nojava_archs=hppa
nojava_os=hurd
ifeq (,$(filter $(DEB_BUILD_ARCH), $(nojava_archs))$(filter $(DEB_BUILD_ARCH_OS), $(nojava_os)))
rm -rf $(CURDIR)/debian/tmp/usr/share/licenses
find $(CURDIR)/debian/libvtk9-dev/ -name "*Qt*" -delete || true
find $(CURDIR)/debian/libvtk9-dev/usr/include/ -name "Q*" -delete || true
- find $(CURDIR)/debian/libvtk9*/ -name "*Qt*" -delete || true
+ find $(CURDIR)/debian/libvtk$(UPSTREAM_VERSION_ABI)/ -name "*Qt*" -delete || true
find $(CURDIR)/debian/tmp/usr/share/doc/vtk-*/doxygen -name "_formulas.log" -delete || true
find $(CURDIR)/debian/build/Utilities/Doxygen/doc/html -name "_formulas.log" -delete || true